import qs from 'qs';
import axios from 'axios';

// const baseUrl = 'http://8.142.67.157:8926';
const baseUrl = 'http://lianhai.zicp.net';

// const baseUrl = 'http://localhost:8001';

export { qs, axios, baseUrl };

axios.interceptors.request.use(
    config => {
        // config.headers.token = localStorage.getItem('token');
        config.headers = { Authorization: 'Bearer ' + localStorage.getItem('token') } 
        return config
    }
)
